<?php

namespace App\Providers;

use App\Listeners\AddPaginationHeaderToResponse;
use Dingo\Api\Event\ResponseWasMorphed;
use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
//        'App\Events\SomeEvent' => [
//            'App\Listeners\EventListener',
//        ],
        ResponseWasMorphed::class => [
            AddPaginationHeaderToResponse::class,
        ],
    ];
}
